<admintpl file="headerEx" />
<title>{:L('COMMENT_COMMENTADMIN_INDEX')}</title>
<!--responsive table-->
<link href="__PUBLIC__/TciocEx/css/table-responsive.css" rel="stylesheet" />
<link href="__PUBLIC__/js/artDialog/skins/default.css" rel="stylesheet" />
</head>

<!-- Placed js at the end of the document so the pages load faster -->
<body class="sticky-header">
<section>
	<!-- main content start-->
	<div class="full-content" >
		<!--body wrapper start-->
		<div class="wrapper  js-check-wrap">
			<div class="row">
				<div class="col-sm-12">
					<section class="panel">
						<header class="panel-heading custom-tab turquoise-tab">
							<ul class="nav nav-tabs">
								<li class="active">
									<a href="{:U('commentadmin/index')}"><i class="fa fa-list-ul"></i>{:L('COMMENT_COMMENTADMIN_INDEX')}
									</a>
								</li>
							</ul>
						</header>
						<div class="panel-body">
							<section id="no-more-tables">
								<form class="js-ajax-form" method="post">
									<div class="form-group"  >
										<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('Commentadmin/check',array('check'=>1))}" data-subcheck="false">{:L('AUDIT')}</button>
										<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('Commentadmin/check',array('uncheck'=>1))}" data-subcheck="true">{:L('CANCEL_AUDIT')}</button>
										<button class="btn btn-danger btn-small js-ajax-submit" type="submit" data-action="{:U('Commentadmin/delete')}" data-subcheck="true" data-msg="{:L('DELETE_CONFIRM_MESSAGE')}">{:L('DELETE')}</button>
									</div>
								<table class="table table-hover table-bordered table-list">
									<thead class="cf">
									<tr>

										<th width="15"><label><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></label></th>
										<th align="center">ID</th>
										<th >{:L('NAME')}</th>
										<th>{:L('EMAIL')}</th>
										<th>{:L('CONTENT')}</th>
										<th>{:L('TIME')}</th>
										<th>{:L('STATUS')}</th>
										<th>{:L('ACTIONS')}</th>
									</tr>
									</thead>
									<tbody>
									<php>$status=array("1"=>L('AUDITED'),"0"=>L('NOT_AUDITED'));</php>
									<volist name="comments" id="vo" empty="没有评论数据！">
										<tr>
											<td><input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]" value="{$vo.id}"></td>
											<td>{$vo.id}</td>
											<td>{$vo.full_name}</td>
											<td>{$vo.email}</td>
											<td>{$vo.content}</td>
											<td>{$vo.createtime}</td>
											<td>{$status[$vo['status']]}</td>
											<td>
												<a target="_blank" href="__ROOT__/{$vo.url}">查看原文</a>
												<a href="{:U('Commentadmin/delete',array('id'=>$vo['id']))}" class="js-ajax-delete">{:L('DELETE')}</a>
											</td>
										</tr>
									</volist>
									</tbody>
									<tfoot>
									<tr>
										<th><label><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></label></th>
										<th >ID</th>
										<th >{:L('NAME')}</th>
										<th >{:L('EMAIL')}</th>
										<th>{:L('CONTENT')}</th>
										<th >{:L('TIME')}</th>
										<th >{:L('STATUS')}</th>
										<th >{:L('ACTIONS')}</th>
									</tr>
									</tfoot>
								</table>
									<div class="form-group"  >
										<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('Commentadmin/check',array('check'=>1))}" data-subcheck="true">{:L('AUDIT')}</button>
										<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('Commentadmin/check',array('uncheck'=>1))}" data-subcheck="true">{:L('CANCEL_AUDIT')}</button>
										<button class="btn btn-danger btn-small js-ajax-submit" type="submit" data-action="{:U('Commentadmin/delete')}" data-subcheck="true" data-msg="{:L('DELETE_CONFIRM_MESSAGE')}">{:L('DELETE')}</button>
									</div>
									</form>
							</section>
							<div class="col-md-12 text-center clearfix">
								{$page}
							</div>
						</div>
					</section>
				</div>
			</div>
		</div>

	</div>
	</div>
	</div>
	<!--body wrapper end-->

	<!--footer section start-->
	<footer>
		<admintpl file="copyright" />
	</footer>
	<!--footer section end-->

	</div>
	<!-- main content end-->
</section>

<script src="__PUBLIC__/TciocEx/js/jquery-1.10.2.min.js"></script>
<script src="__PUBLIC__/js/wind.js"></script>
<script src="__PUBLIC__/js/common.js"></script>
<script src="__PUBLIC__/TciocEx/js/jquery-ui-1.9.2.custom.min.js"></script>
<script src="__PUBLIC__/simpleboot/bootstrap/js/bootstrap.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/jquery-migrate-1.2.1.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/bootstrap.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/modernizr.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/jquery.nicescroll.js"></script>
<script src="__PUBLIC__/js/ajaxForm.js"></script>

<script type="text/javascript" src="__PUBLIC__/TciocEx/js/jquery.validate.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/validation-localization/messages_zh.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/scripts.js"></script>
<script src="__PUBLIC__/TciocEx/js/validation-init.js"></script>


</body>
</html>